﻿@using Telerik.Web.Mvc.UI;
@using Telerik.Web.Mvc;
@{
    string adminPageTitle = "";
    if (RCSoft.Core.Data.DataSettingsHelper.DatabaseIsInstalled())
    {
        if (!String.IsNullOrWhiteSpace(ViewBag.Title))
        {
            adminPageTitle = ViewBag.Title;
        }
        adminPageTitle = adminPageTitle + " - " + @T("SiteName").Text;
    }
    else
    {
        adminPageTitle = ViewBag.Title;
    }
}
<!DOCTYPE html>

<html>
<head>
    <title>@adminPageTitle</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/public.common.js")" type="text/javascript"></script>
</head>

<body>
    <div class="master-wrapper-page">
        <div class="master-wrapper-content">
            @{
                if (RCSoft.Core.Data.DataSettingsHelper.DatabaseIsInstalled())
                {
            <script type="text/javascript">
                $(document).ready(function () {
                    $("#restart-application").click(function (e) {
                        showThrobber('@T("Header.RestartApplication.Progress")');
                    })
                })
            </script>
            <div class="header">
                @Html.Action("Header","Common")
            </div>
            <div class="header-menu">
                @Html.Partial("Menu")
            </div>
                }
                }
            <div class="content">
                <div class="cph">
                    @RenderBody()
                </div>
            </div>
        </div>
    </div>
    @(Html.Telerik().StyleSheetRegistrar()
                    .DefaultGroup(group=>group
                        .Add("telerik.common.min.css")
                        .Add("telerik.vista.min.css")
                        .Add("telerik.rtl.min.css")))
    @(Html.Telerik().ScriptRegistrar()
                    .jQuery(false)
                    .jQueryValidation(false))

</body>
</html>
